//package com.lagou.edu.swagger;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.ComponentScan;
//import org.springframework.context.annotation.Configuration;
//import springfox.documentation.builders.ApiInfoBuilder;
//import springfox.documentation.builders.PathSelectors;
//import springfox.documentation.service.ApiInfo;
//import springfox.documentation.service.Contact;
//import springfox.documentation.spi.DocumentationType;
//import springfox.documentation.spring.web.plugins.Docket;
//import springfox.documentation.swagger2.annotations.EnableSwagger2;
//
///**
// * TODO
// *
// * @author lm
// * @since 2021/10/14 14:48
// */
//@Configuration
//@EnableSwagger2
//@ComponentScan("com.lagou.edu")
//public class SwaggerConfig {
//    @Bean
//    public Docket api() {
//        return new Docket(DocumentationType.SWAGGER_2).apiInfo(apiInfo()).select()
//                .paths(PathSelectors.any()).build();
//    }
//
//    private ApiInfo apiInfo() {
//        return new ApiInfoBuilder()
//                .title("用户登录") //接口标题
//                .description("用户登录接口") //接口描述
//                .version("v1.0") //版本号
//                .contact(new Contact("name", "url", "email")) //联系人信息
//                .build();
//    }
//}
